﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace PSE.ProcessManager.Server.InteligenceManager.Configuration
{
    [ConfigurationCollection(typeof(ProductConfigurationElement), AddItemName = "product")]
    public class ProductConfigurationElementCollection : ConfigurationElementCollection
    {
        protected override ConfigurationElement CreateNewElement()
        {
            return new ProductConfigurationElement();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((ProductConfigurationElement)element).Id;
        }
    }
}
